package com.example.springboot.mapper;


import com.example.springboot.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface DepartmentMapper {

//	private static Map<Integer, Department> departments = null;
//
//	static{
//		departments = new HashMap<Integer, Department>();
//
//		departments.put(101, new Department(101, "D-AA"));
//		departments.put(102, new Department(102, "D-BB"));
//		departments.put(103, new Department(103, "D-CC"));
//		departments.put(104, new Department(104, "D-DD"));
//		departments.put(105, new Department(105, "D-EE"));
//	}
	
	public List<Department> getDepartments();
	
	public Department getDepartment(Integer id);
	
}
